home *** CD-ROM | disk | FTP | other *** search
- Path: odin.visigenic.com!news
- From: Tim O'Neil <toneil@visigenic.com>
- Newsgroups: comp.lang.c
- Subject: Re: && operator question
- Date: Thu, 15 Feb 1996 13:01:52 +0000
- Organization: Visigenic Software, Inc.
- Message-ID: <31232EC0.3CD@visigenic.com>
- References: <4fu69a$b7e@sphinx.Gsu.EDU> <4fuet4$b3r@niktow.canisius.edu>
- NNTP-Posting-Host: vsi48.visigenic.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (WinNT; I)
-
- Alan Duchan wrote:
- > An ANSI conforming compiler will not evaluate expression2 when expression1
- > is false. Similarly, for
- > expr1 || expr2
- >
- > when expr1 is true, expr2 will not be evaluated.
-
- Whoops. I guess my solution isn't the way to write the
- evaluation (unless you want that effect.) What would be
- the effect of writing it:
-
- ((exp1) || (exp2)) stamt;?
-